package com.endbd.systemmanagement.service.address.impl;

import com.endbd.feignapi.model.system.City;
import com.endbd.feignapi.model.system.Province;
import com.endbd.systemmanagement.dao.address.IAddressDao;
import com.endbd.systemmanagement.service.address.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AddressService implements IAddressService {


    @Autowired
    private IAddressDao addressDao;

    @Override
    public List<Province> provinceList() {
        return addressDao.queryProvince();
    }

    @Override
    public List<City> cityList(Province province) {
        return addressDao.queryCityByProvince(province);
    }
}
